﻿using System;
/// <summary>
/// <para>com.shinhwa.struct.WM_MCHITTEST</para>
/// <code>1tyu@live.com</code>
/// <value>http://msdn.microsoft.com/en-us/library/ms645618(VS.85).aspx</value>
/// </summary>
namespace com.shinhwa.win32api {
    /// <summary>
    /// WM_MCHITTEST结构体定义
    /// </summary>
    public struct WM_MCHITTEST {
        public const int _ActiveSize = 5;
        public const int WM_NCHITTEST = 0x0084;

        // WM_MCHITTEST
        public static IntPtr HT_TRANSPARENT = (IntPtr)(-1);
        public static IntPtr HT_ERROR = (IntPtr)(-2);
        public static IntPtr HT_NOW_HERE = (IntPtr)0;
        public static IntPtr HT_CLIENT = (IntPtr)1;
        public static IntPtr HT_CAPTION = (IntPtr)2;
        public static IntPtr HT_SYS_MENU = (IntPtr)3;
        public static IntPtr HT_GROW_BOX = (IntPtr)4;
        public static IntPtr HT_MENU = (IntPtr)5;
        public static IntPtr HT_H_SCROLL = (IntPtr)6;
        public static IntPtr HT_V_SCROLL = (IntPtr)7;
        public static IntPtr HT_MIN_BUTTON = (IntPtr)8;
        public static IntPtr HT_MAX_BUTTON = (IntPtr)9;
        public static IntPtr HT_LEFT = (IntPtr)10;
        public static IntPtr HT_RIGHT = (IntPtr)11;
        public static IntPtr HT_TOP = (IntPtr)12;
        public static IntPtr HT_TOP_LEFT = (IntPtr)13;
        public static IntPtr HT_LEFT_TOP = (IntPtr)13;
        public static IntPtr HT_TOP_RIGHT = (IntPtr)14;
        public static IntPtr HT_BOTTOM = (IntPtr)15;
        public static IntPtr HT_BOTTOM_LEFT = (IntPtr)16;
        public static IntPtr HT_BOTTOM_RIGHT = (IntPtr)17;
        public static IntPtr HT_BORDER = (IntPtr)18;
        public static IntPtr HT_CLOSE = (IntPtr)20;
        public static IntPtr HT_HELP = (IntPtr)21;

        public static IntPtr HT_REDUCE = HT_MIN_BUTTON;
        public static IntPtr HT_SIZE = HT_GROW_BOX;
        public static IntPtr HT_ZOOM = HT_MAX_BUTTON;

        // 移动无边框窗体
        public const int WM_SYSCOMMAND = 0x0112;
        public const int SC_MOVE = 0xF010;
        public const int SC_MOVE_CAPTION = 0xF012;

        // 鼠标类
        public const int WM_MOUSEMOVE = 0x200;
        public const int WM_MOUSELEAVE = 0x2a3;
        public const int WM_LBUTTONDOWN = 0x201;
        public const int WM_LBUTTONUP = 0x202;
        public const int WM_CAPTURECHANGED = 0x215;

        // 窗体移动
        public const int WM_WINDOWPOSCHANGING = 0x46;
        public const int WM_NCLBUTTONDOWN = 0xa1;
        public const int WM_MOVE = 0x3;
        public const int WM_NCMOUSEMOVE = 0xa0;
        public const int WM_NCACTIVATE = 0x86;
        public const int WM_ACTIVATEAPP = 0x1c;
        public const int WM_ACTIVATE = 0x6;
        // ScrollBar
        public const int GWL_STYLE = -16;
        public const int WS_VSCROLL = 0x00200000;
        public const int WS_HSCROLL = 0x00100000;
        public const int SM_CYCAPTION = 0x4;
        // Active no border form
        public const int WS_MAXIMIZEBOX = 0x10000;
        public const int WS_MINIMIZEBOX = 0x20000;
        public const int WS_SYSMENU = 0x00080000;
        public const int WS_THICKFRAME = 0x40000;
    }
}